﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Management.Automation;

namespace IronCow.Posh.Commands
{
    public class RtmCmdlet : PSCmdlet
    {
        private static Rtm CreateRtm()
        {
            var rtm = new Rtm(Constants.ApiKey, Constants.SharedSecret, Properties.Settings.Default.Token);
            rtm.Client.UseHttps = true;
            return rtm;
        }

        private static readonly Rtm sRtm = CreateRtm();

        protected static Rtm Rtm
        {
            get { return sRtm; }
        }
    }
}
